<header>
    <div class="taskbar">
        <div class="box-menu">
            <a href="<?php echo base_url('/'); ?>" class="<?php if($this->router->fetch_class()=='home'){echo 'btnMenuSelect'; }else {echo 'btnMenu';} ?>">
                <div class="btnMenuLeft all">
                    <?php
                    if($this->router->fetch_class()=='home'){
                        echo '<div class="btnMenuSelectRight"></div>';
                    }else {
                        echo '<div class="btnMenuRight"></div>';
                    }
                    ?>
                 </div>
            </a>
            <?php

            foreach(get_category(0) as $cat){
                ?>

                <a href="<?php echo  get_post_list_url($this->province_id,$cat['id']); ?>" class=" <?php if($cat['id']==$category_id){ echo 'btnMenuSelect';}else {echo 'btnMenu';} ?>">
                    <div class="btnMenuLeft <?php echo addClass($cat['name']); ?>">
                        <div class="btnMenuRight <?php if($cat['id']==$category_id){ echo 'btnMenuSelectRight';} ?>"><?php echo $cat['name']; ?></div>
                    </div>
                </a>
                <?php } ?>
        </div>
        <div class="box-menu-text">
            <?php if(is_member()){  ?>
                <div class="sMenu">

                    <div class="left mItem" style="padding-left: 0;">

                        <div class="dangky" style="padding: 0;">
                            <ul>
                                <li>
                                    <div class="dangkys">
                                        <a href="javascript:void(0)" class="usrm">
                                            <div class="left">
                                                <span class="username"><?php echo $this->userdata['fullname'] ?></span>
                                                <span class="mycoin">0 myCoin</span>
                                            </div>
                                            <div class="left"><img src="<?php echo base_url(thumb($this->userdata['avatar'],50,50)); ?>" class="uavatar"></div>
                                        </a>
                                    </div>
                                    <ul>
                                        <li><a href="#">Shop</a></li>
                                        <li><a href="#">Quản lý shop</a></li>
                                        <li><a href="#">Quản lý bình luận</a></li>
                                        <li><a href="#">Nạp mycoin</a></li>
                                        <li><a href="<?php echo site_url('usercp/ca-nhan') ?>">Quản lý tài khoản</a></li>
                                        <li><a href="<?php echo site_url('dang-xuat') ?>">Thoát</a></li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="left mItem rborder" style="border-right: 0;padding: 0;"><div class="dangnhap" style="border-right: 0;padding: 0;">&nbsp;</div></div>
<!--                    <a rel="nofollow" href="--><?php //echo site_url('dang-ky'); ?><!--"">-->
<!--                        <div class="left mItem rborder"><div class="dangnhap">Đăng nhập</div></div>-->
<!--                    </a>-->
                </div>
            <?php }else {
            ?>
            <div class="sMenu">
                <a rel="nofollow" href="<?php echo site_url('dang-ky'); ?>" >
                    <div class="left mItem">
                        <div class="dangky">Đăng ký</div>
                    </div>
                </a>
                <a rel="nofollow" href="<?php echo site_url('dang-nhap'); ?>">
                <div class="left mItem rborder"><div class="dangnhap">Đăng nhập</div></div>
                </a>
            </div>
            <?php } ?>
        </div>
    </div>
</header>